import request from '@/utils/request'

export function createTeacher(data) {
  return request({
    url: 'manager/teacher',
    method: 'post',
    data
  })
}

export function deleteTeacher(id) {
  return request({
    url: 'manager/teacher/' + id,
    method: 'delete'
  })
}

export function updateTeacher(id, data) {
  return request({
    url: 'manager/teacher/' + id,
    method: 'patch',
    data
  })
}

export function fetchTeacherList() {
  return request({
    url: 'manager/teacher/list',
    method: 'get'
  })
}
